package com.huluobo.a2308douyindemo.adapter

import android.widget.RadioButton
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.huluobo.a2308douyindemo.R
import com.huluobo.a2308douyindemo.bean.PayCoinBean

/**
 *  Created by LC on 2025/10/31.
 */
class PayCoinAdapter : BaseQuickAdapter<PayCoinBean, BaseViewHolder>(R.layout.item_pay_coin) {
    private var currentPosition = -1

    override fun convert(holder: BaseViewHolder, item: PayCoinBean) {
        holder.setText(R.id.item_pay_coin_price_tv, "${item.price}元")
        holder.setText(R.id.item_pay_coin_tv, "${item.coin}抖币")
        holder.getView<RadioButton>(R.id.item_pay_select_rb).isChecked = item.isSelect
    }
}